﻿namespace GoogleMusicDesktop
{
    using System;
    using System.IO;

    public class SongInfo
    {
        private double _DownloadPercent;
        public string Album;
        public string Artist;
        public string DownloadUrl;
        public string FileName;
        public string FolderName;
        public string Id;
        public long Length;
        public string Status;
        public string Title;

        public double DownloadPercent
        {
            get
            {
                return this._DownloadPercent;
            }
            set
            {
                if ((value >= 0.0) && (value <= 1.0))
                {
                    this._DownloadPercent = value;
                }
            }
        }

        public string FullFileName
        {
            get
            {
                return Path.Combine(this.FolderName, this.FileName);
            }
        }
    }
}

